package org.groupg.practice.JNotify;


import org.apache.commons.lang3.SystemUtils;
import org.junit.jupiter.api.Test;

public class OSPracticeTest {
    @Test
    void testGetOS(){
        boolean isOsWindows = SystemUtils.IS_OS_WINDOWS;
        boolean isOsMac = SystemUtils.IS_OS_MAC;
        boolean isOsLinux = SystemUtils.IS_OS_LINUX;
        boolean isOsUnix = SystemUtils.IS_OS_UNIX;
        boolean isOsSolaris = SystemUtils.IS_OS_SOLARIS;
        System.out.println(isOsWindows);
        System.out.println(isOsMac);
        System.out.println(isOsLinux);
        System.out.println(isOsUnix);
        System.out.println(isOsSolaris);
        System.getenv().forEach((k, v) -> System.out.println(k + "=" + v));
    }
}
